home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Development Tools & Languages / Macintosh Common Lisp Related / interfaces / PInterface Translator / PInterfaces / Scrap.p < prev    next >
Encoding:
Text File  |  1993-09-16  |  1.2 KB  |  62 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Sunday, January 6, 1991 at 11:07 PM
  3.     Scrap.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.         Copyright Apple Computer, Inc.    1985-1989
  7.         All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT Scrap;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingScrap}
  21. {$SETC UsingScrap := 1}
  22.  
  23. {$I+}
  24. {$SETC ScrapIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$SETC UsingIncludes := ScrapIncludes}
  30.  
  31. TYPE
  32. PScrapStuff = ^ScrapStuff;
  33. ScrapStuff = RECORD
  34.     scrapSize: LONGINT;
  35.     scrapHandle: Handle;
  36.     scrapCount: INTEGER;
  37.     scrapState: INTEGER;
  38.     scrapName: StringPtr;
  39.     END;
  40.  
  41.  
  42. FUNCTION InfoScrap: PScrapStuff;
  43.     INLINE $A9F9;
  44. FUNCTION UnloadScrap: LONGINT;
  45.     INLINE $A9FA;
  46. FUNCTION LoadScrap: LONGINT;
  47.     INLINE $A9FB;
  48. FUNCTION GetScrap(hDest: Handle;theType: ResType;VAR offset: LONGINT): LONGINT;
  49.     INLINE $A9FD;
  50. FUNCTION ZeroScrap: LONGINT;
  51.     INLINE $A9FC;
  52. FUNCTION PutScrap(length: LONGINT;theType: ResType;source: Ptr): LONGINT;
  53.     INLINE $A9FE;
  54.  
  55.  
  56. {$ENDC}    { UsingScrap }
  57.  
  58. {$IFC NOT UsingIncludes}
  59.     END.
  60. {$ENDC}
  61.  
  62.